The Slider Component > FSlider.getValue()

 

FSlider.getValue()

Availability

Flash Player 6.

Usage

mySlider_sld.getValue ()

Parameters

none

Returns


Returns the current value of the slider.

Description

Returns the current value of the slider.

 

Notes

If you only want to retrieve a whole number, then use the getIntValue method.

Example

The slider_getIntValue.fla example file contains an example of using this method.

The following code sets the value of the slider to 50 and then retrieves the value and traces it.

mySlider_sld.setValue(50);
trace( "Value: " + mySlider_sld.getValue() );//traces 50

 

See also

FSlider.getIntValue()

FSlider.setValue()